package com.zxx.pattern.facadePattern.facade1;

/**
 * @author zxx on 2021/7/20
 */
public class TestFacade1 {
    public static void main(String[] args) {
        Light light=new Light();
        Television tv=new Television();
        AirCondition ac=new AirCondition();
        Screen screen = new Screen();

        WatchTvSwtichFacade facade = new WatchTvSwtichFacade(light, ac, tv, screen);

        facade.on();
        System.out.println("--------------可以看电视了.........");
        facade.off();
        System.out.println("--------------可以睡觉了...........");
    }
}
